home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip: 2005 Utilities
/
CHIP Utilities 2005.7z
/
CHIP Utilities 2005.iso
/
images
/
arachne.igz
/
arachne.img
/
LEVEL0
/
UTILZ.CAB
/
bin
/
FDK.BAT
< prev
next >
Wrap
DOS Batch File
|
2005-01-16
|
643b
|
32 lines
@if "%debug%"=="" echo off
set _fdk_=%fdk%
set fdk=
ver /r | tfind "freedos" "kernel" >%tmp%\_fdk.tmp
if errorlevel 1 goto _clean
lmod /S. @set fdk=[$6]<%tmp%\_fdk.tmp >%tmp%\_fdk.bat
call %tmp%\_fdk.bat
for %%i in (%tmp%\_fdk.*) do del %%i >%tmp%\nul
if not "%fdk%"=="" el! %fdk%
if "%1"=="" goto _cln0
if "%fdk%"=="%1" goto _fdk_2
varset _fdk=%1-%fdk% >%tmp%\nul
if errorlevel 1 goto _fdk_1
el! 3
goto _cln
:_fdk_2
el! 2
goto _cln
:_fdk_1
el! 1
goto _cln
:_cln
if "%_fdk_%"=="" if "%2"=="" set fdk=
set _fdk=
set _fdk_=
goto _end
:_clean
for %%i in (%tmp%\_fdk.*) do del %%i >%tmp%\nul
:_cln0
set _fdk_=
:_end